#include "registry.h"

#include <iostream>

Registry& Registry::instance()
{
    static Registry reg;
    return reg;
}
void Registry::add(const std::string& name)
{
    _items.push_back(name);
    std::cout << "[Registry] add: " << name << '\n';
}
void Registry::dump() const
{
    std::cout << "[Registry] dump: ";
    for (auto& s : _items) std::cout << s << ' ';
    std::cout << '\n';
}